diff options
| author | Adam Soltys <[email protected]> | 2024-10-09 12:52:05 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-10 12:18:06 -0700 |
| commit | 4605d7fbd8b94db013b0e5058116e421150f2a47 (patch) | |
| tree | a93d5cd90ec2b2a22917b4a829fd39b4727667b1 /src/routes/(app)/[username]/(profile)/+layout.server.ts | |
| parent | c2716632244bfc13cafe5cd373d8822ad9436664 (diff) | |
| download | coinos-ui-4605d7fbd8b94db013b0e5058116e421150f2a47.tar.gz coinos-ui-4605d7fbd8b94db013b0e5058116e421150f2a47.zip | |
follows
Diffstat (limited to 'src/routes/(app)/[username]/(profile)/+layout.server.ts')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+layout.server.ts | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts index a508de92..308422b3 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.server.ts +++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts @@ -1,6 +1,8 @@ import { get } from "$lib/utils"; -export async function load({ parent }) { +export async function load({ depends, parent }) { + depends("app:user"); + let { subject, user } = await parent(); subject.follows = []; @@ -12,12 +14,13 @@ export async function load({ parent }) { console.log("problem fetching follows", e); } - try { - subject.followers = await get(`/${subject.pubkey}/followers`); - } catch (e) { - console.log("problem fetching followers", e); - } + // try { + // subject.followers = await get(`/${subject.pubkey}/followers`); + // } catch (e) { + // console.log("problem fetching followers", e); + // } + subject.followers = []; if (user) { user.follows = await get(`/${user.pubkey}/follows?tagsonly=true`); } |
